﻿using JST.TPLMS.Contract;
using JST.TPLMS.DataBase;
using JST.TPLMS.Entitys.Entities;
using JST.TPLMS.Repository.BaseFiles;

namespace JST.TPLMS.Repository
{
    /// <summary>
    /// 货物接口实现
    /// </summary>
    public class CargoRepository : BaseRepository<Cargo>, ICargoRepository
    {
        private readonly TPLMSDbContext _db;

        public CargoRepository(TPLMSDbContext db) : base(db)
        {
            _db = db;
        }

        public void Update(Cargo obj)
        {
            _db.Cargos.Update(obj);
        }
    }
}
